package aiku.numericalcontroloa.Mapper.DepartmentManagement;

import aiku.numericalcontroloa.Model.Dto.PageSelect;
import aiku.numericalcontroloa.Model.Entity.DepartmentManagement.Department;
import aiku.numericalcontroloa.Model.Entity.DepartmentManagement.DepartmentWithUser;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author 黄广庭
 * @Date 2024/2/20 9:36
 */
@Repository
public interface DepartmentMapper extends BaseMapper<Department> {

    List<DepartmentWithUser> selectDepartmentWithUserList(@Param(Constants.WRAPPER) LambdaQueryWrapper<DepartmentWithUser> queryWrapper);

    DepartmentWithUser selectDepartmentWithUser(@Param(value = "id") String id);

    Department selectByIdForDelete(@Param(value = "id")String id);
}
